// pages/videosound/videosound.js
const app = getApp();

Page({
  data: {
    src: ""
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this
    that.setData({
      src: options.src
    })
    console.log(options.src);

  },
  onReady() {
    this.videoContext = wx.createVideoContext("myVideo");
  },
  destroy() {
    this.videoContext.destroy();
  },
  bindPlaySourceSound() {
    console.log("1");
    this.videoContext.play();
  },
});
